package cn.com.dycc.sys_manage.rolesysmanagement.entity;

import java.io.Serializable;

public class RoleInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6588417409912307242L;
	
	private String role_no;
	private String role_name;
	
	public RoleInfo(){}

	public RoleInfo(String role_no, String role_name) {
		super();
		this.role_no = role_no;
		this.role_name = role_name;
	}

	public String getRole_no() {
		return role_no;
	}

	public void setRole_no(String role_no) {
		this.role_no = role_no;
	}

	public String getRole_name() {
		return role_name;
	}

	public void setRole_name(String role_name) {
		this.role_name = role_name;
	}

	@Override
	public String toString() {
		return "RoleInfo [role_no=" + role_no + ", role_name=" + role_name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((role_no == null) ? 0 : role_no.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RoleInfo other = (RoleInfo) obj;
		if (role_no == null) {
			if (other.role_no != null)
				return false;
		} else if (!role_no.equals(other.role_no))
			return false;
		return true;
	}
	
	

}
